import { SerializeStream } from "../../../Framework/Serialize/SerializeStream";
type int = number;
//class TToplist
    
    export  class TToplist
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.id);
            arg1.writeInt(this.version);
            arg1.writeInt(this.toplistType);
            arg1.writeInt(this.rank);
            arg1.writeInt(this.entityId);
            arg1.writeString(this.entityName);
            arg1.writeString(this.entityUid);
            arg1.writeInt(this.vipType);
            arg1.writeInt(this.propertyOne);
            arg1.writeInt(this.propertyTwo);
            arg1.writeInt(this.propertyThree);
            arg1.writeInt(this.ownerId);
            arg1.writeString(this.ownerName);
            arg1.writeLong(this.valueOne);
            arg1.writeLong(this.valueTwo);
            arg1.writeLong(this.valueThree);
            arg1.writeInt(this.serverId);
            arg1.writeInt(this.proxyId);
            arg1.writeInt(this.lastRank);
            arg1.writeDate(this.createDt);
            arg1.writeInt(this.reverse1);
            arg1.writeInt(this.reverse2);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.id = arg1.readInt();
            this.version = arg1.readInt();
            this.toplistType = arg1.readInt();
            this.rank = arg1.readInt();
            this.entityId = arg1.readInt();
            this.entityName = arg1.readString();
            this.entityUid = arg1.readString();
            this.vipType = arg1.readInt();
            this.propertyOne = arg1.readInt();
            this.propertyTwo = arg1.readInt();
            this.propertyThree = arg1.readInt();
            this.ownerId = arg1.readInt();
            this.ownerName = arg1.readString();
            this.valueOne = arg1.readLong();
            this.valueTwo = arg1.readLong();
            this.valueThree = arg1.readLong();
            this.serverId = arg1.readInt();
            this.proxyId = arg1.readInt();
            this.lastRank = arg1.readInt();
            this.createDt = arg1.readDate();
            this.reverse1 = arg1.readInt();
            this.reverse2 = arg1.readInt();
            return;
        }

        public /* var */id: int;

        public /* var */version: int;

        public /* var */toplistType: int;

        public /* var */rank: int;

        public /* var */entityId: int;

        public /* var */entityName: string;

        public /* var */entityUid: string;

        public /* var */vipType: int;

        public /* var */propertyOne: int;

        public /* var */propertyTwo: int;

        public /* var */propertyThree: int;

        public /* var */ownerId: int;

        public /* var */ownerName: string;

        public /* var */valueOne: number;

        public /* var */valueTwo: number;

        public /* var */valueThree: number;

        public /* var */serverId: int;

        public /* var */proxyId: int;

        public /* var */lastRank: int;

        public /* var */createDt: Date;

        public /* var */reverse1: int;

        public /* var */reverse2: int;
    }
